/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable space-before-function-paren */
import Vue from 'vue'
import Vuex from 'vuex'
import information from './information'
import VuexPersistence from 'vuex-persist'

Vue.use(Vuex)
const vuexLocal = new VuexPersistence({
  storage: window.localStorage
})

export default new Vuex.Store({
  plugins: [vuexLocal.plugin],
  state: {
    data: ''
  },
  getters: {
  },
  mutations: {
    log(state: { data: any }, data: any) {
      state.data = data
      console.log('登录信息')
    }
  },
  actions: {
  },
  modules: {
    information
  }
})
